﻿namespace TS3ServerManager.BL
{
    public class ServerConnectInfo
    {
        #region Properties

        public string Host { get; protected set; }
        public ushort QueryPort { get; protected set; }
        public ushort? VoicePort { get; protected set; }
        public string Username { get; protected set; }
        public string Password { get; protected set; }

        #endregion

        #region Constructor

		public ServerConnectInfo(string host, ushort queryPort, ushort? voicePort) : this(host, queryPort, voicePort, null, null)
		{
			
		}

        public ServerConnectInfo(string host, ushort queryPort, ushort? voicePort, string username, string password)
        {
            Host = host;
            QueryPort = queryPort;
            VoicePort = voicePort;
            Username = username;
            Password = password;
        }

        #endregion

        #region Public Methods

        public ServerConnectInfo Clone()
        {
            return (ServerConnectInfo) MemberwiseClone();
        }

        #endregion
    }
}